Use a better caps lock warning icon
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 5 Jan 2009 18:14:58 +0000 (18:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 5 Jan 2009 18:14:58 +0000 (18:14 +0000)
svn path=/trunk/; revision=22070

ChangeLog
docs/reference/ChangeLog
docs/reference/gtk/Makefile.am
docs/reference/gtk/tmpl/gtkstock.sgml
gtk/gtkentry.c
gtk/gtkiconfactory.c
gtk/gtkstock.h
gtk/stock-icons/16/gtk-caps-lock-warning.png [new file with mode: 0644]
gtk/stock-icons/24/gtk-caps-lock-warning.png [new file with mode: 0644]

index 75ffeed52e76a6e9bcc92b4b68b79b2790b2a676..de1427e55d5935dd0f3beee0f9fd913a17f243f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/stock-icons/{16,24}/gtk-caps-lock-warning.png: New icons
+       * gtk/gtkstock.h: Add GTK_STOCK_CAPS_LOCK_WARNING.
+       * gtk/gtkiconfactory.c (get_default_icons): Register the stock icon.
+       * gtk/gtkentry.c (show_capslock_feedback): Use the new stock icon.
+
 2009-01-05  Tor Lillqvist  <tml@novell.com>
 
        Bug 566628 - gdk_display_close always asserts on win32
index d6c5b6bddee304f0f3acef00b47cfd4ae0845c62..0a4b01ddb719e6bae430ff33babfd94b24c61728 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/tmpl/gtkstock.sgml: Add GTK_STOCK_CAPS_LOCK_WARNING
+       * gtk/Makefile.am: And copy the icon
+
 2009-01-04  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 566045 – GtkViewport is lacking a description
index cf819d58a3c1b3d77c0781fab7b229b90ca6c4b2..7f5b9b3c139ba517efaa479e37006f248dbad585 100644 (file)
@@ -181,6 +181,7 @@ HTML_IMAGES = \
        $(top_srcdir)/gtk/stock-icons/20/gtk-apply.png                  \
        $(top_srcdir)/gtk/stock-icons/24/gtk-bold.png                   \
        $(top_srcdir)/gtk/stock-icons/20/gtk-cancel.png                 \
+       $(top_srcdir)/gtk/stock-icons/24/gtk-caps-lock-warning.png      \
        $(top_srcdir)/gtk/stock-icons/24/gtk-cdrom.png                  \
        $(top_srcdir)/gtk/stock-icons/24/gtk-clear.png                  \
        $(top_srcdir)/gtk/stock-icons/24/gtk-close.png                  \
index 65e6a509b93b44e883431de5d62daa4cc89ad1b5..6da3b7b0f84da84c1777260bc657a861b5775007 100644 (file)
@@ -151,6 +151,15 @@ The "Cancel" item.
 
 
 
+<!-- ##### MACRO GTK_STOCK_CAPS_LOCK_WARNING ##### -->
+<para>
+The "Caps Lock Warning" icon.
+<inlinegraphic fileref="gtk-caps-lock-warning.png" format="PNG"></inlinegraphic>
+</para>
+
+@Since: 2.16
+
+
 <!-- ##### MACRO GTK_STOCK_CDROM ##### -->
 <para>
 The "CD-Rom" item.
index 20a21c8a3f3ff8e5e6d58e04fc02e77e0e07b15f..5db98af14a36015159b9985fc7634267477943b9 100644 (file)
@@ -9339,7 +9339,7 @@ show_capslock_feedback (GtkEntry    *entry,
 
   if (gtk_entry_get_storage_type (entry, GTK_ENTRY_ICON_SECONDARY) == GTK_IMAGE_EMPTY)
     {
-      gtk_entry_set_icon_from_stock (entry, GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_INFO);
+      gtk_entry_set_icon_from_stock (entry, GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_CAPS_LOCK_WARNING);
       gtk_entry_set_icon_activatable (entry, GTK_ENTRY_ICON_SECONDARY, FALSE);
       priv->caps_lock_warning_shown = TRUE;
     }
index ba90ddd09e2798f01db8cf285f524b60b6bfc715..cced1108e54c8bbb351e8ad10c0c57c4ec8c0bfc 100644 (file)
@@ -509,6 +509,7 @@ get_default_icons (GtkIconFactory *factory)
   register_stock_icon (factory, GTK_STOCK_CONNECT);
   register_stock_icon (factory, GTK_STOCK_DISCONNECT);
   register_stock_icon (factory, GTK_STOCK_EDIT);
+  register_stock_icon (factory, GTK_STOCK_CAPS_LOCK_WARNING);
   register_bidi_stock_icon (factory, 
                            GTK_STOCK_MEDIA_FORWARD,
                            GTK_STOCK_MEDIA_FORWARD "-ltr",
index 8fef6d479a24f5f120f5d9472f712e951aefc3c7..2cbe0b61eaf771b182a1c359d24ddb107a69ad19 100644 (file)
@@ -84,6 +84,7 @@ void          gtk_stock_set_translate_func (const gchar      *domain,
 #define GTK_STOCK_APPLY            "gtk-apply"
 #define GTK_STOCK_BOLD             "gtk-bold"
 #define GTK_STOCK_CANCEL           "gtk-cancel"
+#define GTK_STOCK_CAPS_LOCK_WARNING "gtk-caps-lock-warning"
 #define GTK_STOCK_CDROM            "gtk-cdrom"
 #define GTK_STOCK_CLEAR            "gtk-clear"
 #define GTK_STOCK_CLOSE            "gtk-close"
diff --git a/gtk/stock-icons/16/gtk-caps-lock-warning.png b/gtk/stock-icons/16/gtk-caps-lock-warning.png
new file mode 100644 (file)
index 0000000..0dfa418
Binary files /dev/null and b/gtk/stock-icons/16/gtk-caps-lock-warning.png differ
diff --git a/gtk/stock-icons/24/gtk-caps-lock-warning.png b/gtk/stock-icons/24/gtk-caps-lock-warning.png
new file mode 100644 (file)
index 0000000..ca76d50
Binary files /dev/null and b/gtk/stock-icons/24/gtk-caps-lock-warning.png differ